package com.wanmait.baohan.mapper;



import com.wanmait.baohan.pojo.TravelApplication;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TravelApplicationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TravelApplication record);

    int insertSelective(TravelApplication record);

    TravelApplication selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelApplication record);

    int updateByPrimaryKey(TravelApplication record);

    List<TravelApplication> selectByStaffId(@Param("travelApplication") TravelApplication travelApplication, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    //高文强 查找所有的出差申请单
    List<TravelApplication> selectAll(@Param("travelApplication") TravelApplication travelApplication, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    //根据个人id查找所有审批通过的出差记录
    List<TravelApplication> selectByStaffIdCarryOut(Integer id);

    void rejectApplicationByPrimaryKey(Integer id);

    List<TravelApplication> selectAllApplicationCanBooking(Integer id);

}